from django.conf.urls import url
from . import views
from .views import RegisterView
from .views import ActiveView
from .views import Login
urlpatterns=[

    # 主页
    url(r'^index/$', views.index, name="index"),

    # 用户登录
    url(r'^user/login$', Login.as_view(), name="login"),
    url(r'^user/dologin$', Login.as_view(), name="dologin"),
    # 注册
    url(r'^user/register$', RegisterView.as_view(), name="register"),
    url(r'^user/doRegister$', RegisterView.as_view(), name="doRegister"),
    url(r'^user/toRegisters$', views.toRegisters, name="toRegisters"),

    url(r'^user/active/(?P<token>.*)$',ActiveView.as_view() , name="active$"),
    url(r'^rawdata$',views.rawdata,name='rawdata'),

    # 中国地图
    url(r'^forecast/forecast$', views.forecast, name="forecast"),
    url(r'^error', views.error, name="error"),

    # 预测过程
    #url(r'^visualization', views.visualization, name="visualization"),
    url(r'^aboutus$',views.aboutus,name="aboutus"),

    url(r'^citymap/$', views.citymap, name="citymap"),

    url(r'^visualization/tuberhuaianmap/$', views.tuberhuaianmap, name="tuberhuaianmap"),
    url(r'^index/line$', views.line, name="line"),
    url(r'^visualization/tuberline$', views.tuberline, name="tuberline"),
    url(r'^visualization/line', views.line, name="line"),
    url(r'^visualization/fluline', views.fluline, name="fluline"),
    url(r'^crawler/$',views.crawler,name="crawler"),

    url('^test_api/', views.test_api, name='test_api'),
    url('^get_data/', views.get_data, name='get_data'),
    url('^get_tianqidata/', views.get_tianqidata, name='get_tianqidata'),

    url('^get_line_data/', views.get_line_data, name='get_line_data'),
###################################line.html#########################################
    url('^get_line_fdata/', views.get_line_fdata, name='get_line_fdata'),
    url('^get_line_ldata/', views.get_line_ldata, name='get_line_ldata'),
    url('^get_line_hdata/', views.get_line_hdata, name='get_line_hdata'),
###################################line.html#########################################

###################################flueline.html#########################################
    url('^get_line_mdata/', views.get_line_fdata, name='get_line_mdata'),
    url('^get_line_sdata/', views.get_line_ldata, name='get_line_sdata'),
###################################flueline.html#########################################

###################################tuberline.html#########################################
    url('^get_line_hzdata/', views.get_line_hzdata, name='get_line_hzdata'),
    url('^get_line_lsdata/', views.get_line_lsdata, name='get_line_lsdata'),
    url('^get_line_hadata/', views.get_line_hadata, name='get_line_hadata'),
    url('^get_line_hydata/', views.get_line_hydata, name='get_line_hydata'),
    url('^get_line_qjpdata/', views.get_line_qjpdata, name='get_line_qjpdata'),
    url('^get_line_xydata/', views.get_line_xydata, name='get_line_xydata'),
    url('^get_line_jhdata/', views.get_line_jhdata, name='get_line_jhdata'),

###################################tuberline.html#########################################

   # 获取资讯
    url('^get_informations/', views.get_informations, name='get_informations'),
    url('^get_wxinformations/', views.get_wxinformations, name='get_wxinformations'),
    url('^get_info_sum/', views.get_info_sum, name='get_info_sum'),


    url('^incidence/', views.incidence, name='incidence'),# 发病数
    url(r'^visual/$', views.visual, name="visual"),# 系统1.0 例子
    url(r'^inform/inform$', views.inform),# 资讯
    url(r'^mysystem/$', views.mysystem),# 预测
    url(r'^upfile/$', views.upfile),# 上传
    url(r'^savefile/$', views.savefile),# 保存文件

    url('^get_FHTday_data/', views.get_FHTday_data, name='get_FHTday_data'),
    url('^get_FHTmon_data/', views.get_FHTmon_data, name='get_FHTmon_data'),
    url('^get_FHTyear_data/', views.get_FHTyear_data, name='get_FHTyear_data'),
    #获取knn,pca预测
    url('^get_knnpre_data/', views.get_knnpre_data, name='get_knnpre_data'),
    url('^get_pcapre_data/', views.get_pcapre_data, name='get_pcapre_data'),
    #发送邮件
    url('^send_knn_data/', views.send_knn_data, name='send_knn_data'),
    url('^send_pca_data/', views.send_pca_data, name='send_pca_data'),
    #注销
    url(r'^user/zhuxiao', views.zhuxiao, name="zhuxiao"),
    #微信登录验证
    url(r'^wxlogin', views.wxlogin, name="wxlogin"),
    #获取rnn,cnn预测
    url('^get_rnn_data/', views.get_rnn_data, name='get_rnn_data'),
    url('^get_cnn_data/', views.get_cnn_data, name='get_cnn_data'),
]
